powered by
Markov blanket of a node in a Bayesian network.
mb(bn, node)
This can either be a bn object or the adjacency matrix.
A vector with one number indicating the node or variable whose Markov blanket is to be returned.
The parents of the node of interest.
The children of the node of interest.
The spouses of the node of interest. These are the other parents of the children of the node of interest.
The Markov blanket of the node of interest. The collection of all the previous.
The Markov blanket of a variable (node) is the set of its parents, children and spouses.
pchc, fedhc, mmhc, bnplot
# NOT RUN { y <- pchc::rbn3(1000, 10, 0.3) tru <- y$G x <- y$x mod <- pchc(x) pchc::bnplot(mod$dag) G <- pchc::bnmat(mod$dag) pchc::mb(G, 6) # }
Run the code above in your browser using DataLab